package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.core.framework.base.entity.DataEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 电子病历
 * 
 * @ClassName: CdcEmrEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
@TableName("t_cdc_bs_emr") 
public class CdcEmrEntity extends DataEntity<CdcEmrEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//就诊记录
	private Long episodeId;	
	//索引码
	private String xcode;	
	//文档类型
	private Long busEmrTypeId;	
	//标题
	private String title;	
	//子标题
	private String subCode;
	//子标题
	private String subTitle;
	//内容
	private String content;	
	//填写日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date emrDate;	
	//填写人
	private Long emrUserId;	
	//业务数据类型
	private Long dataId;	
	//是否有效
	private Integer isActive;	

	/**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：文档类型
	 */
	public void setBusEmrTypeId(Long busEmrTypeId) {
		this.busEmrTypeId = busEmrTypeId;
	}
	/**
	 * 获取：文档类型
	 */
	public Long getBusEmrTypeId() {
		return busEmrTypeId;
	}
	/**
	 * 设置：标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：标题
	 */
	public String getTitle() {
		return title;
	}
	
	public String getSubCode() {
		return subCode;
	}
	public void setSubCode(String subCode) {
		this.subCode = subCode;
	}
	/**
	 * 设置：子标题
	 */
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	/**
	 * 获取：子标题
	 */
	public String getSubTitle() {
		return subTitle;
	}
	/**
	 * 设置：内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：填写日期
	 */
	public void setEmrDate(Date emrDate) {
		this.emrDate = emrDate;
	}
	/**
	 * 获取：填写日期
	 */
	public Date getEmrDate() {
		return emrDate;
	}
	/**
	 * 设置：填写人
	 */
	public void setEmrUserId(Long emrUserId) {
		this.emrUserId = emrUserId;
	}
	/**
	 * 获取：填写人
	 */
	public Long getEmrUserId() {
		return emrUserId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
